﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.AndonManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.AndonManagement.AndonStationVMs
{
    public partial class AndonStationTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._AndonStation._DeviceUser")]
        public ExcelPropety DeviceUser_Excel = ExcelPropety.CreateProperty<AndonStation>(x => x.DeviceUserId);
        [Display(Name = "_Model._AndonStation._EquipmentId")]
        public ExcelPropety EquipmentId_Excel = ExcelPropety.CreateProperty<AndonStation>(x => x.EquipmentId);
        [Display(Name = "_Model._AndonStation._Name")]
        public ExcelPropety Name_Excel = ExcelPropety.CreateProperty<AndonStation>(x => x.Name);
        [Display(Name = "_Model._AndonStation._Code")]
        public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<AndonStation>(x => x.Code);
        [Display(Name = "_Model._AndonStation._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<AndonStation>(x => x.Remark);
        [Display(Name = "_Model._AndonStation._IpAddress")]
        public ExcelPropety IpAddress_Excel = ExcelPropety.CreateProperty<AndonStation>(x => x.IpAddress);
        [Display(Name = "_Model._AndonStation._TagId")]
        public ExcelPropety TagId_Excel = ExcelPropety.CreateProperty<AndonStation>(x => x.TagId);
        [Display(Name = "_Model._AndonStation._TagAddress")]
        public ExcelPropety TagAddress_Excel = ExcelPropety.CreateProperty<AndonStation>(x => x.TagAddress);
        [Display(Name = "_Model._AndonStation._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<AndonStation>(x => x.CreateTime, true);
        [Display(Name = "_Model._AndonStation._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<AndonStation>(x => x.UpdateTime, true);
        [Display(Name = "_Model._AndonStation._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<AndonStation>(x => x.CreateBy);
        [Display(Name = "_Model._AndonStation._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<AndonStation>(x => x.UpdateBy);
        [Display(Name = "_Model._AndonStation._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<AndonStation>(x => x.IsValid);
        [Display(Name = "_Model._AndonStation._TenantCode")]
        public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<AndonStation>(x => x.TenantCode);

	    protected override void InitVM()
        {
            

        }

    }

    public class AndonStationImportVM : BaseImportVM<AndonStationTemplateVM, AndonStation>
    {
            //import

    }

}